Electronic device for generating video comprising character and method thereof

ABSTRACT

An electronic device and method are disclosed. The electronic device includes a display, a processor and memory. The processor may implement the method, including analyzing, by a processor, a first video to identify any characters included in the first video, displaying one or more icons representing one or more characters identified in the first video via a display, receiving, by input circuitry, a first user input selecting a first icon representing a first character from among the one or more icons, based on the first user input, selecting image frames of the first video that include the first character from among image frames included in the first video, and generating, by the processor, a second video including the selected image frames. A second embodiment includes automatically selecting images from a gallery including one or more characters for generation of a video.

CROSS-REFERENCE TO RELATED APPLICATION(S)

This application is based on and claims priority under 35 U.S.C. § 119to Korean Patent Application No. 10-2018-0155328, filed on Dec. 5, 2018,in the Korean Intellectual Property Office, the disclosure of which isincorporated by reference herein its entirety.

BACKGROUND 1. Field

The disclosure relates to an electronic device for generating a video,and, more particularly, to automatic generation of videos based onimages including one or more designated characters, entities, and/orcreatures included within the images.

2. Description of Related Art

With advances in image processing technology, more and more electronicdevices are capable of automatically generating video mediapresentations using a collection of photographs. For example, theelectronic device may generate multimedia video, in which a plurality ofphotos are displayed sequentially on the display, typically with theaddition of animation and even background music. Thus, Suchpresentations are sometimes referred to as “stories,” and accordingly,electronic devices are now capable of generating singular stories byreceiving a collection of static photos and processing them with music,animation and other effects to be displayed within an aestheticallypleasant video presentation.

The above information is presented as background information only toassist with an understanding of the disclosure. No determination hasbeen made, and no assertion is made, as to whether any of the abovemight be applicable as prior art with regard to the disclosure.

SUMMARY

For these “story” video presentations, a user may request a video toinclude a specific character (e.g., a person or an animal). However, atpresent, electronic devices typically generate these presentations byrandomly selecting photos stored in a gallery application, in responseto a user input requesting generation of the video presentation. Thusthe generated video presentation may fail to reflect the user's requestfor the specific character. In some cases, the user may directly selectthe photos including the specific character by manual inputs made withina gallery application. However, this results in a serious inconveniencein requiring the user to manually select the desired photos from thegallery application.

Aspects of the disclosure are to address at least the above-mentionedproblems and/or disadvantages and to provide at least the advantagesdescribed below. Accordingly, an aspect of the disclosure is to providean electronic device that generates a video including the characterdesired by a user and a method thereof.

In accordance with an aspect of the disclosure, an electronic device mayinclude a display, a processor operatively connected to the display, anda memory operatively connected to the processor. The memory may storeinstructions that, when executed, cause the processor to analyze a firstvideo to identify any characters included in the first video, displayone or more icons representing one or more characters identified in thefirst video via the display, receive a first user input selecting afirst icon representing a first character from among the one or moreicons, based on the first user input, select image frames of the firstvideo that include the first character from among image frames includedin the first video, and generate a second video including the selectedimage frames.

In accordance with another aspect of the disclosure, an electronicdevice may include a display, a processor operatively connected to thedisplay, and a memory operatively connected to the processor. The memorymay store instructions that, when executed, cause the processor toexecute a gallery application and display, as part of the galleryapplication, a plurality of images stored in the memory, receive a firstuser input requesting generating of a video, analyze the plurality ofimages to identify one or more characters depicted in the plurality ofimages, in response to the first user input, display one or more iconsrepresenting the identified one or more characters via the display,receive a second user input selecting a first icon representing a firstcharacter of the one or more characters, based on the second user input,select images from among the plurality of images that include the firstcharacter, and generate the video including the selected images.

In accordance with another aspect of the disclosure, a method of anelectronic device may include analyzing, by a processor, a first videoto identify any characters included in the first video, displaying oneor more icons representing one or more characters identified in thefirst video via a display, receiving, by input circuitry, a first userinput selecting a first icon representing a first character from amongthe one or more icons, based on the first user input, selecting imageframes of the first video that include the first character from amongimage frames included in the first video, and generating, by theprocessor, a second video including the selected image frames.

Other aspects, advantages, and salient features of the disclosure willbecome apparent to those skilled in the art from the following detaileddescription, which, taken in conjunction with the annexed drawings,discloses certain embodiments of the disclosure.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other aspects, features, and advantages of certainembodiments of the disclosure will be more apparent from the followingdescription taken in conjunction with the accompanying drawings, inwhich:

FIG. 1 is a block diagram of an electronic device in a networkenvironment according to certain embodiments;

FIG. 2 is a functional block diagram of an electronic device, accordingto certain embodiments;

FIG. 3A, FIG. 3B, and FIG. 3C illustrates an operation of an electronicdevice generating a second video including a character by using a firstvideo, according to certain embodiments;

FIG. 4 illustrates an operation flowchart of an electronic devicegenerating a second video including a character by using a first video,according to certain embodiments;

FIG. 5A, FIG. 5B, and FIG. 5C illustrates an operation of an electronicdevice generating a video including a character by using a plurality ofimages, according to certain embodiments;

FIG. 6 illustrates an operation flowchart of an electronic devicegenerating a video including a character by using a plurality of images,according to certain embodiments;

FIG. 7A, FIG. 7B, and FIG. 7C illustrates an operation of an electronicdevice generating a video including a character by using images selectedby a user, according to certain embodiments;

FIG. 8 illustrates an operation of an electronic device inserting imagesincluding a character, according to certain embodiments;

FIG. 9 illustrates an operation flowchart of an electronic devicegenerating a video including a character and a background, according tocertain embodiments;

FIG. 10A and FIG. 10B illustrates an operation of an electronic devicegenerating a video including a plurality of characters, according tocertain embodiments;

FIG. 11 illustrates an operation flowchart of an electronic devicegenerating a video including a plurality of characters, according tocertain embodiments;

FIG. 12A, FIG. 12B, and FIG. 12C illustrates an operation of anelectronic device sharing a second video, according to certainembodiments; and

FIG. 13A, FIG. 13B, and FIG. 13C illustrates an operation of anelectronic device determining an image of a last location in a secondvideo, according to certain embodiments.

DETAILED DESCRIPTION

Hereinafter, certain embodiments of the disclosure will be describedwith reference to accompanying drawings. However, it should beunderstood that the disclosure is not intended to be limited to aspecific embodiment, but intended to include various modifications,equivalents, and/or alternatives of the corresponding embodiment.

FIG. 1 is a block diagram of an electronic device 101 in a networkenvironment 100, according to certain embodiments.

Referring to FIG. 1, the electronic device 101 in the networkenvironment 100 may communicate with an electronic device 102 over afirst network 198 (e.g., a short range wireless communication) or maycommunicate with an electronic device 104 or a server 108 over a secondnetwork 199 (e.g., a long range wireless communication). The electronicdevice 101 may communicate with the electronic device 104 through theserver 108. According to an embodiment, the electronic device 101 mayinclude a processor 120, a memory 130, an input device 150, a soundoutput device 155, a display device 160, an audio module 170, a sensormodule 176, an interface 177, a haptic module 179, a camera module 180,a power management module 188, a battery 189, a communication module190, a subscriber identification module 196, or an antenna module 197.In any embodiment, the electronic device 101 may not include at leastone (e.g., the display device 160 or the camera module 180) of theabove-described components or may further include one or more othercomponents. In any embodiment, some of the components may be implementedas a single integrated circuit. For example, the sensor module 176(e.g., a fingerprint sensor, an iris sensor, or an illuminance sensor)may be implemented while being embedded in the display device 160 (e.g.,a display).

For example, the processor 120 may execute software (e.g., a program) tocontrol at least another component (e.g., hardware or softwarecomponent) of the electronic device 101 connected to the processor 120,and may process and calculate various types of data. According to anembodiment, as at least part of data processing or calculation, theprocessor 120 may load instructions or data received from othercomponents (e.g., the sensor module 176 or the communication module 190)into a volatile memory 132, may process instructions or data stored inthe volatile memory 132, and may store the result data in a nonvolatilememory 134. According to an embodiment, the processor 120 may include amain processor 121 (e.g., a central processing unit or an applicationprocessor) and an auxiliary processor 123 (e.g., a graphic processingunit, an image signal processor, a sensor hub processor, or acommunication processor) capable of operating independently or togetherwith the main processor. Additionally or alternatively, the auxiliaryprocessor 123 may use lower power than the main processor 121 or may beconfigured to be specialized to a specified function. The auxiliaryprocessor 123 may be implemented separately from the main processor 121or as part of the main processor 121.

For example, the auxiliary processor 123 may control at least part ofthe functions or states associated with at least one (e.g., the displaydevice 160, the sensor module 176, or the communication module 190) ofthe components of the electronic device 101, instead of the mainprocessor 121 while the main processor 121 is in an inactive (e.g.,sleep) state or together with the main processor 121 while the mainprocessor 121 is in an active (e.g., the execution of an application)state. According to an embodiment, the auxiliary processor 123 (e.g., animage signal processor or a communication processor) may be implementedas a part of operatively associated other components (e.g., the cameramodule 180 or the communication module 190).

The memory 130 may store various pieces of data used by at least onecomponent (e.g., the processor 120 or the sensor module 176) of theelectronic device 101. For example, data may include software (e.g., aprogram 140) and input data or output data for instructions associatedwith the software. The memory 130 may include, for example, the volatilememory 132 or the nonvolatile memory 134.

The program 140 may be stored as software in the memory 130 and mayinclude, for example, an operating system 142, a middleware 144, or anapplication 146.

The input device 150 may receive instructions or data to be used for thecomponent (e.g., the processor 120) of electronic device 101, from theoutside (e.g., a user) of the electronic device 101. The input device150 may include, for example, a microphone, a mouse, a keyboard, or adigital pen (e.g., a stylus pen).

The sound output device 155 may output a sound signal to the outside ofthe electronic device 101. The sound output device 155 may include, forexample, a speaker or a receiver. The speaker may be used for a generalpurpose, such as multimedia play or recording play, and the receiver maybe used to receive an incoming call. According to an embodiment, thereceiver may be implemented separately from the speaker or may beimplemented as a part of the speaker.

The display device 160 may visually provide information to the outside(e.g., the user) of the electronic device 101. The display device 160may include, for example, a display, a hologram device, or a projectorand a control circuit for controlling a corresponding device. Accordingto an embodiment, the display device 160 may include a touch circuitryconfigured to sense a touch, or a sensor circuitry (e.g., a pressuresensor) configured to measure the strength of force generated by thetouch.

The audio module 170 may convert sound to an electrical signal, orreversely, may convert an electrical signal to sound. According to anembodiment, the audio module 170 may obtain sound through the inputdevice 150, or may output sound through the sound output device 155, orthrough an external electronic device (e.g., the electronic device 102)(e.g., a speaker or a headphone) directly or wirelessly connected withthe electronic device 101.

The sensor module 176 may sense an operation state (e.g., power or atemperature) of the electronic device 101 or an external environmentstate (e.g., a user state), and may generate an electrical signal or adata value corresponding the sensed state. According to an embodiment,the sensor module 176 may include, for example, a gesture sensor, a gyrosensor, a barometric pressure sensor, a magnetic sensor, an accelerationsensor, a grip sensor, a proximity sensor, a color sensor, an infrared(IR) sensor, a biometric sensor, a temperature sensor, a humiditysensor, or an illumination sensor.

The interface 177 may support one or more specified protocols that maybe used to directly and wirelessly connect the electronic device 101with an external electronic device (e.g., the electronic device 102).According to an embodiment, the interface 177 may include, for example,a high definition multimedia interface (HDMI), a universal serial bus(USB) interface, a secure digital (SD) card interface, or an audiointerface.

A connecting terminal 178 may include a connector that may allow theelectronic device 101 to be physically connected with an externalelectronic device (e.g., the electronic device 102). According to anembodiment, the connecting terminal 178 may include, for example, a HDMIconnector, a USB connector, a SD card connector, or an audio connector(e.g., a headphone connector).

The haptic module 179 may convert an electrical signal to a mechanicalstimulation (e.g., vibration or movement) or an electrical stimulationwhich the user may perceive through the sense of touch or the sense ofmovement. According to an embodiment, the haptic module 179 may include,for example, a motor, a piezoelectric sensor, or an electricalstimulation device.

The camera module 180 may photograph a still image and a video.According to an embodiment, the camera module 180 may include one ormore lenses, image sensors, image signal processors, or flashes.

The power management module 188 may manage the power which is suppliedto the electronic device 101. According to an embodiment, the powermanagement module 188 may be implemented, for example, as at least partof a power management integrated circuit (PMIC).

The battery 189 may power at least one component of the electronicdevice 101. According to an embodiment, the battery 189 may include, forexample, a primary cell not rechargeable, a secondary cell rechargeable,or a fuel cell.

The communication module 190 may establish a direct (or wired)communication channel or a wireless communication channel between theelectronic device 101 and an external electronic device (e.g., theelectronic device 102, the electronic device 104, or the server 108) andmay perform communication through the established communication channel.The communication module 190 may include one or more communicationprocessors which are operated independently of the processor 120 (e.g.,an application processor) and support direct (or wired) communication orwireless communication. According to an embodiment, the communicationmodule 190 may include a wireless communication module 192 (e.g., acellular communication module, a short range wireless communicationmodule, or a global navigation satellite system (GNSS) communicationmodule) or a wired communication module 194 (e.g., a local area network(LAN) communication module or a power line communication module). Acorresponding communication module of such communication modules maycommunicate with an external electronic device over the first network198 (e.g., a short range communication network such as Bluetooth, Wi-Fidirect, or infrared data association (IrDA)) or the second network 199(e.g., a long range communication network such as a cellular network, anInternet, or a computer network (e.g., LAN or WAN)). The above-describedkinds of communication modules may be integrated in one component (e.g.,a single chip) or may be implemented with a plurality of components(e.g., a plurality of chips) which are independent of each other. Thewireless communication module 192 may identify and authenticate theelectronic device 101 within a communication network, such as the firstnetwork 198 or the second network 199, by using subscriber information(e.g., international mobile subscriber identity (IMSI)) stored in thesubscriber identification module 196.

The antenna module 197 may transmit a signal or a power to the outside(e.g., an external electronic device) or may receive a signal or a powerfrom the outside. According to an embodiment, the antenna module mayinclude one antenna including a radiator made of a conductor or aconductive pattern formed on a substrate (e.g., a PCB). According to anembodiment, the antenna module 197 may include a plurality of antennas.In this case, at least one antenna suitable for a communication schemeused in a communication network such as the first network 198 or thesecond network 199 may be selected, for example, by the communicationmodule 190 from the plurality of antennas. The signal or power may beexchanged between the communication module 190 and an externalelectronic device through the selected at least one antenna. Accordingto any embodiment, another component (e.g., RFIC) in addition to theradiator may be further formed as the part of the antenna module 197.

At least part of the components may be connected to each other through acommunication scheme (e.g., a bus, a general purpose input and output(GPIO), a serial peripheral interface (SPI), or a mobile industryprocessor interface (MIPI)) between peripheral devices and may exchangesignals (e.g., commands or data) with each other.

According to an embodiment, a command or data may be transmitted orreceived (or exchanged) between the electronic device 101 and theexternal electronic device 104 through the server 108 connected to thesecond network 199. Each of the electronic devices 102 and 104 may be adevice of which the type is different from or the same as that of theelectronic device 101. According to an embodiment, all or a part ofoperations to be executed in the electronic device 101 may be executedin one or more external devices of the external electronic devices 102,104, or 108. For example, in the case where the electronic device 101should perform any function or service automatically or in response to arequest from the user or any other device, the electronic device 101 mayadditionally request one or more external electronic devices to performat least part of the function or service, instead of internallyexecuting the function or service. The one or more external electronicdevices which receive the request may execute at least a part of thefunction or service thus requested or an additional function or serviceassociated with the request, and may provide a result of the executionto the electronic device 101. The electronic device 101 may processreceived result as it is or additionally, and may provide a result ofthe processing as at least a part of the response to the request. Tothis end, for example, a cloud computing, distributed computing, orclient-server computing technology may be used.

FIG. 2 is a functional block diagram of the electronic device 101,according to certain embodiments.

Referring to FIG. 2, the electronic device 101 may include the processor120, the memory 130, and a display 260 (e.g., at least part of thedisplay device 160 of FIG. 1). According to another embodiment, theelectronic device 101 may further include at least one of the othercomponents (e.g., such as the components illustrated in FIG. 1) inaddition to the components illustrated in FIG. 2.

According to an embodiment, the display 260 may include a touch screendisplay capable of receiving a touch input. According to an embodiment,the display 260 may display an image (e.g., referred to as a “photo”) ora video. According to an embodiment, the display 260 may display agraphic user interface (GUI) associated with the generation of a videopresentation (e.g., a “story”).

According to an embodiment, the memory 130 may store instructions forperforming functions of the electronic device 101, including those forgenerating a video presentation. For example, the memory 130 may includea character analyzing module 210, a character managing module 220, and avideo generating module 230. The modules stored in the memory 130 mayindicate executable instructions and/or a software module (e.g., theprogram 140 of FIG. 1).

According to certain embodiments, the processor 120 may generate thevideo presentation by executing some of the instructions stored in thememory 130.

According to an embodiment, the processor 120 may analyze a plurality ofimages stored in a gallery application, using the character analyzingmodule 210. The processor 120 may select images including a specificcharacter based on the analysis of the images. In this example, the“character” may indicate a person or an animal that appears in theimages. The processor 120 may select still images from a video includinga specific character as well, by analyzing the video to detect apresence of the character in certain frames of the video.

According to an embodiment, the processor 120 may manage the imageswhich include the specific character using the character managing module220. For example, the character managing module 220 may distinguishimages which include the specific character but exclude other characters(e.g., do not include another character), from images including both thespecific character and the other character and may save thedistinguished images. In another example, the character managing module220 may also save and detect images that have a location tag matchingthe location tag of the images known to include the specific character,but do not include the specific character.

According to an embodiment, the processor 120 may generate a videoincluding a character, using the video generating module 230. In thisexample, the video generated by the electronic device 101 may bereferred to as a “gallery story” provided by a Samsung Galaxy™ device.For example, the processor 120 may generate the video for the specificcharacter using video using images including the specific character(e.g., and excluding images that do not include the character). Inanother example, the processor 120 may generate the video, using imagesincluding the specific character and the other character as well as aspecific character. In this case, for the purpose of indicating that thegenerated video is the video for the specific character, the processor120 may insert an image including the specific character into the firstlocation and the last location of the video. In another example, theprocessor 120 may provide an environment in which a user may recallmemories of a place where the specific character has been, by insertingimages (e.g., a background image), the location tag of which is the sameas the location tag of the image including the specific character eventhough not including the specific character, into the middle of thevideo.

According to an embodiment, the electronic device 101 may furtherinclude a wireless communication circuit 290 (e.g., at least part of thewireless communication module 192 of FIG. 1) to share the video with anexternal electronic device (e.g., 102, 104, or 108 of FIG. 1).

FIG. 3A, FIG. 3B, and FIG. 3C illustrates an example operation of theelectronic device 101 generating a second video 320 including acharacter ‘B’ using a first video 310, according to certain embodiments.

Referring to FIG. 3A, the electronic device 101 may play the first video310. According to an embodiment, the electronic device 101 may extractcharacters (e.g., entities, individuals, creatures or persons, etc. ‘A’,‘B’, and ‘C’ or animals ‘D’ and ‘E’) that appear in the first video 310,by analyzing the frames (e.g., the still images) of the first video 310.The electronic device 101 may extract characters in real time, beforeplayback of first video 310 is started, after playback of first video310 is terminated, or while the first video 310 is being played.

According to an embodiment, the electronic device 101 may display theextracted characters on the display 260. An embodiment is exemplified inFIG. 3 as all of persons (e.g., ‘A’, ‘B’, and ‘C’) and animals (e.g.,‘D’ and ‘E’) are extracted. However, the electronic device 101 mayextract the persons or the animals (e.g., to the exclusion of the other)in response to a user input. In the embodiments described later, theillustrations show persons being extracted. However, the same principlemay be applied to an embodiment in which animals are extracted, as seenhere. According to an embodiment, the electronic device 101 may displayimages representing persons (e.g., ‘A’, ‘B’, and ‘C’) and/or animals(e.g., D and E) at the upper end or the lower end of a region, in whichthe first video 310 is played, and/or may display the imagesrepresentative of persons or the animals overlapping with the firstvideo 310.

Referring to FIG. 3B, the electronic device 101 may receive a user inputselecting the character ‘B’ from among the displayed characters ‘A’,‘B’, and ‘C’. After receiving the user input selecting the character‘B’, the electronic device 101 may receive a user input 315 requestinggenerating of the second video 320.

Referring to FIG. 3C, the electronic device 101 may generate the secondvideo 320 in response to the user input 315. The electronic device 101may generate the second video 320 using images (e.g., 320-1, 320-2, and320-3) including the second character ‘B’ as previously selected by theuser. The electronic device 101 may play the second video 320 on thedisplay 260. For example, the electronic device 101 may play the secondvideo 320 at the same display location where the first video 310 isplayed.

According to an embodiment, the electronic device 101 may repeatgenerating the video including a specified character to createadditional video presentations. For example, when the user input 315 isonce again received after the second video 320 is played, the electronicdevice 101 may generate another video presentation, again based on theimages including the character ‘B’. In this case, the subsequent videopresentation may be generated such that at least one of the type, thenumber, and/or the order of images included in the other new video aredifferent from the video 320 generated previously. In another example,when a user input is received selecting another character (e.g., ‘C’)after the second video 320 is played, the electronic device 101 maygenerate a new video presentation including the new selected character.For the efficiency of the storage space of the memory 130, theelectronic device 101 may save the second video to a storage device,until a user input to save the generated second video is received.

FIG. 4 illustrates an operation flowchart 400 of the electronic device101 generating a second video (e.g., 320 of FIG. 3) including acharacter (e.g., ‘B’ of FIG. 3) by using a first video (e.g., 310 ofFIG. 3), according to certain embodiments. The operation flowchart 400and other operation flowcharts described later may be performed by theelectronic device 101 or the component (e.g., the processor 120 of FIG.2) included in the electronic device 101.

Referring to FIG. 4, in operation 405, the electronic device 101 mayplay the first video.

In operation 410, the electronic device 101 may analyze the first videoto identify at least one character included in the first video. Forexample, the electronic device 101 may identify characters by detectionof the faces of characters from the frames (e.g., still images) of thefirst video.

In operation 415, the electronic device 101 may display a representationof the at least one character identified from the first video. Forexample, the electronic device 101 may display an image including a faceof an identified character, on a display (e.g., 260 of FIG. 2). One ormore characters may be represented in this way for user selection.

In operation 420, the electronic device 101 may receive a user inputselecting a first character (e.g., ‘B’ of FIG. 3) from among thedisplayed one or more identified characters.

In operation 425, the electronic device 101 may select images which aredetected to include the selected first character from among the frameswhich form the first video.

In operation 430, the electronic device 101 may generate the secondvideo (e.g., the video presentation) using the selected images (e.g.,combined with animations, sounds, movements, effects, music, etc.) andmay initiate playback of the generated video. It is noted that automaticgeneration of such videos are known such that details of the generationare omitted here for the sake of brevity.

FIG. 5A, FIG. 5B, and FIG. 5C illustrates an operation of the electronicdevice 101 generating a video 520 including a character ‘B’ by using aplurality of images 1, 2, . . . , and 24, according to certainembodiments.

Referring to FIG. 5A, the electronic device 101 may execute a galleryapplication. When the gallery application is executed, the electronicdevice 101 may display a list of a plurality of images 1, 2, . . . , and24 stored in electronic device 101 within the user interface of thegallery application. The plurality of images stored in the galleryapplication may include static images (e.g., photos) and also dynamicimages (e.g., animated images, clips and videos). According to anembodiment, the electronic device 101 may receive a user input 510requesting generating of the video 520 while the list of the pluralityof images 1, 2, . . . , and 24 is displayed.

According to an embodiment, the electronic device 101 may analyze theplurality of images 1, 2, . . . , and 24 in response to receiving theuser input 510 to identify characters included within the plurality ofimages. Based on the analysis, the electronic device 101 may identify,for example, characters ‘A’, ‘B’, and ‘C.’ The electronic device 101 mayextract the identified characters ‘A’, ‘B’, and ‘C’ included in theplurality of images 1, 2, . . . , and 24 based on the analysis of theplurality of images 1, 2, . . . , and 24. According to anotherembodiment, although not illustrated in FIG. 5, the electronic device101 may extract the characters ‘A’, ‘B’, and ‘C’ by analyzing theplurality of images 1, 2, . . . , and 24 before the user input 510 isreceived (e.g., automatically upon execution of the gallery application,or at some other point of time).

Referring to FIG. 5B, the electronic device 101 may display theextracted characters ‘A’, ‘B’, and ‘C’ on the display 260 using therepresentations (e.g., icons or images) indicated in FIG. 5B. Theelectronic device 101 may receive a user input selecting the singlecharacter ‘B’ among the received characters ‘A’, ‘B’, and ‘C’.

Referring to FIG. 5C, the electronic device 101 may generate a video 520(e.g., the second video 320) in response to receiving a user inputselecting the character ‘B’. For example, the video 520 may be generatedbased on images (e.g., 520-1, 520-2, and 520-3) which, based on theanalysis, were identified as including the character ‘B’. The electronicdevice 101 may play the generated video 520 on the display 260.

FIG. 6 illustrates an operation flowchart 600 of the electronic device101 generating a video (e.g., 520 of FIG. 5) including a character(e.g., ‘B’ of FIG. 5) by using a plurality of images (e.g., 1, 2, . . ., and 24 of FIG. 5), according to certain embodiments.

In operation 605, the electronic device 101 may execute a galleryapplication. The gallery application may include a plurality of images.According to an embodiment, the gallery application may be stored in thememory 130.

In operation 610, the electronic device 101 may receive a user input(e.g., 510 of FIG. 5) requesting generating of a video presentation.

In operation 615, the electronic device 101 may analyze the plurality ofimages stored in the gallery application to identify characters includedin each of the images. The electronic device 101 may extract anyidentified characters included in the plurality of images by detectingthe faces of the characters included in the plurality of images.

In operation 620, the electronic device 101 may display the extracted atleast one character on a display (e.g., 260 of FIG. 2). For example, theelectronic device 101 may display representative images (e.g.,thumbnails), each indicating a respective detected face of an identifiedcharacter. One or more such images may be displayed indicating one ormore characters.

In operation 625, the electronic device 101 may receive a user inputselecting a first character (e.g., ‘B’ of FIG. 5) from among thedisplayed one or more characters.

In operation 630, responsive to the user input, the electronic device101 may select images including the selected first character from amongthe plurality of images included in the gallery application.

In operation 635, the electronic device 101 may generate the video basedon the selected images (e.g., using the selected images and addinganimations, sounds, transitions, text, and/or any otherpresentation-appropriate effects) and may play the generated video.

FIG. 7A, FIG. 7B, and FIG. 7C illustrates an operation of the electronicdevice 101 generating a video 720 including a character ‘B’ by using theimages selected by a user, according to certain embodiments.

Referring to FIG. 7A, the electronic device 101 may execute a galleryapplication. When the gallery application is executed, the electronicdevice 101 may display the list of a plurality of images 1, 2, . . . ,and 24 stored in the gallery application, on the display 260. Aplurality of images stored in the gallery application may include notonly a static image but also a dynamic image.

According to an embodiment, the electronic device 101 may receive a userinput to select the images 2, 7, 8, 13, and 18 among the plurality ofimages 1, 2, . . . , and 24. After the images 2, 7, 8, 13, and 18 areselected, the electronic device 101 may receive a user input 710 to makea request for generating the video 720. According to an embodiment, whenthe user input 710 is received, the electronic device 101 may analyzethe images 2, 7, 8, 13, and 18 selected by a user.

Referring to FIG. 7B, the electronic device 101 may display characters‘A’, ‘B’, and ‘C’ extracted from the images 2, 7, 8, 13, and 18 selectedby the user, on the display 260. For example, the electronic device 101may display a pop-up window 712 including images indicating the faces ofcharacters ‘A’, ‘B’, and ‘C’ overlapping with the execution screen ofthe gallery application. For another example, although not illustratedin FIG. 7, the electronic device 101 may display the extractedcharacters ‘A’, ‘B’, and ‘C’ on a separate screen.

According to an embodiment, the electronic device 101 may receive a userinput to select the single character ‘B’ among the displayed characters‘A’, ‘B’, and ‘C’ and may receive a user input 715 to select “done”, asincluded within the pop-up window 712.

Referring to FIG. 7C, the electronic device 101 may generate the video720 (e.g., the video 520 of FIG. 5) in response to the user input 715 toselect “done”. For example, the video 720 may be generated based onimages (e.g., 720-1, 720-2, and 720-3) including the character ‘B’. Theelectronic device 101 may play the video 720 on the display 260.

FIG. 8 illustrates an operation of the electronic device 101 insertingimages including a character ‘B’, according to certain embodiments.

Referring to FIG. 8, the electronic device 101 may process a video 800directly associated with a character ‘B’, by inserting other imagesincluding the character “B” or associated with the character “B” (e.g.,820-4 and 820-5, 820-1, 820-2, and 820-3) into the video 800, so as toproduce a new video presentation using the foundation of the originalvideo 800.

For example, although not including character ‘B’, the electronic device101 may insert a background image (e.g., 820-4) (or referred to as a“landscape photo”), of which the location tag and the shooting date arethe same as images 820-1, 820-2, and 820-3 including the character ‘B’,into the video 800. The location tag may indicate information about alocation at which an image is captured. The electronic device 101 maycompare the location tag and the shooting date of images stored in thecharacter managing module 220 and may select the background image (e.g.,820-4), of which the location tag and the shooting date are the same asat least one image of images 820-1, 820-2, and 820-3 including thecharacter ‘B’. The background image 820-4 may not include the character‘B’. However, the electronic device 101 may determine that the character‘B’ is positioned at a place indicated by the background image 820-4,based on the location tag and the shooting date.

For another example, the electronic device 101 may select the image820-5 including character ‘C’ different from the character ‘B’ selectedby a user.

According to an embodiment, for the purpose of indicating that the video800 is the video for the character ‘B’, the electronic device 101 mayset the priority of an image (e.g., at least one of 820-1, 820-2, or820-3) including character ‘B’ (e.g., exclusively) to be high. Theelectronic device 101 may insert an image of a high priority into thefirst location or the last location of the video 800.

FIG. 9 illustrates an operation flowchart 900 of the electronic device101 inserting images including a character ‘B’, according to certainembodiments. The operations illustrated in the operation flowchart 900may be an embodiment of operation 425 and operation 430 of FIG. 4 or maybe an embodiment of operation 630 and operation 635 of FIG. 6.

Referring to FIG. 9, in operation 905, the electronic device 101 mayidentify whether the image selected among a plurality of images includesa first character (e.g., ‘B’ of FIG. 3). For example, a plurality ofimages may be still images included in the first video 310 in FIG. 3,may be the images 1, 2, . . . , and 24 stored in the gallery applicationin FIG. 5, or may be the images 2, 7, 8, 13, and 18 in FIG. 7 selectedby a user.

When the selected image includes the first character, in operation 910,the electronic device 101 may identify whether the selected imageincludes another character (e.g., ‘A’ or ‘C’ of FIG. 3).

When the selected image does not include another character (e.g., 820-1,820-2, or 820-3 of FIG. 8), in operation 915, the electronic device 101may insert the selected image into the first location or the lastlocation of the video.

When the selected image includes another character (e.g., 820-5 of FIG.8), in operation 925, the electronic device 101 may insert the selectedimage into the middle location of the video. The middle location maymean the location other than the first location and the last location ofthe video.

When the selected image does not include the first character, inoperation 920, the electronic device 101 may identify whether thelocation tag of the selected image matches the location tag of the otherimage including the first character. For another example, the electronicdevice 101 may compare shooting dates of the selected image and theother image to detect for matches between shooting dates to identifyinsertable photos that do not explicitly include the selected character.In yet another example, the electronic device and may compare locationtags and shooting dates of the photographs to identify insertable photosthat do not explicitly include the selected character.

When the location tag of the selected image matches the location tag ofthe other image (e.g., 820-4 in FIG. 8), in operation 925, theelectronic device 101 may insert the selected image into an interimlocation within the video. For another example, when the location tag ofthe selected image is the same as the location tag of the other imageand when the shooting date of the selected image is the same as theshooting date of the other image, the electronic device 101 may performoperation 925.

When the location tag or the shooting date of the selected image isdifferent from the location tag or the shooting date of the other image,in operation 930, the electronic device 101 may exclude the selectedimage from the video.

FIG. 10A and FIG. 10B illustrates an operation of the electronic device101 generating the video including a plurality of characters ‘B’ and‘C’, according to certain embodiments, by allowing identification of a“main” character.

The screen displayed in FIG. 10A may correspond to the screen displayedin FIG. 3B, FIG. 5B, or FIG. 7B. According to an embodiment, theelectronic device 101 may receive a user input selecting a plurality ofcharacters ‘B’ and ‘C’. After (or before) the plurality of characters‘B’ and ‘C’ are selected, the electronic device 101 may receive a userinput selecting the specific character (e.g., ‘B’) as a “maincharacter.” The electronic device 101 may set the priority of an imageincluding the main character ‘B’ (e.g., exclusively without any othercharacters) to be greater than priorities of other selected characters,such that images with the main character ‘B’ are treated differently ingenerating the video presentation. For example, images including themain character ‘B’ and having superior priority may be inserted intopreferential locations of the video, such as the first location or thelast location of the video.

For example, referring to FIG. 10B, the electronic device 101 may selectimages (e.g., 1020-1, 1020-2, 1020-3, 1020-4, and 1020-5) including atleast one character of the plurality of characters ‘B’ and ‘C’. Theelectronic device 101 may insert an image (e.g., 1020-1, 1020-2, or1020-3) of the high priority among the selected images into the firstlocation or the last location of the video.

FIG. 11 illustrates an operation flowchart 1100 of the electronic device101 generating a video including a plurality of characters (e.g., ‘B’and ‘C’ of FIG. 10), according to certain embodiments. The operationsillustrated in FIG. 11 may be an embodiment of operation 420 tooperation 430 of FIG. 4 or may be an embodiment of operation 625 tooperation 635 of FIG. 6.

Referring to FIG. 11, in operation 1105, the electronic device 101 mayreceive a user input to select a first character (e.g., ‘B’ of FIG. 10)and a second character (e.g., ‘C’ of FIG. 10).

In operation 1110, the electronic device 101 may receive a user input toselect the first character as a main character. According to anembodiment, after receiving the user input in operation 1110, theelectronic device 101 may receive the user input in operation 1105.

In operation 1115, the electronic device 101 may select a first imagegroup (e.g., 1020-1, 1020-2, 1020-3, 1020-4, and 1020-5 of FIG. 10)including at least one of the first character or the second character.According to another embodiment, the electronic device 101 mayadditionally select an image (e.g., a background image) of which thelocation tag and the shooting date are the same as those of at least oneimage included in the first image group, based on the embodiments inFIGS. 8 and 9.

In operation 1120, the electronic device 101 may select a second imagegroup (e.g., 1020-1, 1020-2, and 1020-3 of FIG. 10) including the firstcharacter (e.g., exclusively) from the first image group.

In operation 1125, the electronic device 101 may insert the imagesincluded in the second image group into the first location and the lastlocation of a video.

FIG. 12A, FIG. 12B, and FIG. 12C illustrates an operation of theelectronic device 101 sharing a second video 1230, according to certainembodiments.

Referring to FIG. 12A, the electronic device 101 may receive a userinput 1215 requesting sharing of a first video 1210 (e.g., 310 of FIG.3) with an external electronic device. When the user input 1215 isreceived, the electronic device 101 may transmit a file associated withthe first video 1210 to the external electronic device.

Referring to FIG. 12B, before transmitting the first video 1210, theelectronic device 101 may analyze characters ‘A’, ‘B’, and ‘C’ includedin the first video 1210. The electronic device 101 may inquire of a userwhether to generate a second video 1230 including a character, bydisplaying a pop-up window 1220 indicating the analyzed characters ‘A’,‘B’, and ‘C’. For another example, although not illustrated in FIG. 12,the electronic device 101 may display the extracted characters ‘A’, ‘B’,and ‘C’ on a separate screen.

According to an embodiment, the electronic device 101 may receive a userinput to select the single character ‘B’ among the displayed characters‘A’, ‘B’, and ‘C’ and may receive a user input 1225 to select “done”.

Referring to FIG. 12C, the electronic device 101 may generate the secondvideo 1230 (e.g., the video 720 of FIG. 7C) in response to the userinput 1225 to select “done”. For example, the second video 1230 may begenerated based on images (e.g., 1220-1, 1220-2, and 1220-3) includingthe character ‘B’. The electronic device 101 may play the second video1230 on the display 260 or may transmit the file associated with thesecond video 1230 to the external electronic device.

As described above, an electronic device (e.g., 101 of FIG. 1) mayinclude a display (e.g., 260 of FIG. 2), a processor (e.g., 120 of FIG.2) operatively connected to the display, and a memory (e.g., 130 of FIG.2) operatively connected to the processor. The memory may storeinstructions that, when executed, cause the processor to play a firstvideo (e.g., 310 of FIG. 3A), to analyze at least one character includedin the first video, to display the analyzed at least one character viathe display, to receive a first user input to select a first character(e.g., ‘B’ of FIG. 3) of the at least one character, to select imagesincluding the first character among a plurality of images included inthe first video, in response to the first user input, and to play asecond video (e.g., 320 of FIG. 3C) including the selected images.

According to an embodiment, the at least one character may include atleast one of a person or an animal.

According to an embodiment, the instructions may cause the processor toselect a first image among the plurality of images included in the firstvideo, to identify whether the first image includes the first character,to identify whether the first image includes another character when thefirst image includes the first character, and to insert the first imageinto a first location or a last location of the second video when thefirst image does not include the other character.

According to an embodiment, the instructions may cause the processor toidentify whether a location tag of the first image is the same as alocation tag of a second image including the first character when thefirst image does not include the first character and to insert the firstimage into a middle location of the second video when the location tagof the first image is the same as the location tag of the second image.

According to an embodiment, the instructions may cause the processor notto select the first image when the location tag of the first image isdifferent from the location tag of the second image.

According to an embodiment, the instructions may cause the processor toinsert the first image into a middle location of the second video whenthe first image includes the other character.

According to an embodiment, the instructions may cause the processor toreceive a second user input to select the first character and a secondcharacter among the at least one character, to receive a third userinput to select the first character among the first character and thesecond character, as a main character, to select a first image groupincluding at least one of the first character or the second characteramong the plurality of images included in the first video, in responseto the second user input and the third user input, to select a secondimage group including the first character (e.g., exclusively) from thefirst image group, and to insert images included in the second imagegroup, into a first location or a last location of the second video.

According to an embodiment, the electronic device may further include awireless communication circuit transmitting a file associated with afirst video or a second video to an external electronic device. Theinstructions may cause the processor to receive a fourth user input tomake a request for sharing the first video with the external electronicdevice, to analyze the at least one character included in the firstvideo, in response to the fourth user input, to display the analyzed atleast one character via the display, to receive the first user input toselect the first character of the at least one character, to select theimages including the first character among a plurality of imagesincluded in the first video, in response to the first user input, togenerate the second video based on the selected images, and to transmita file associated with the second video to the external electronicdevice.

FIG. 13A, FIG. 13B, and FIG. 13C illustrates an operation of theelectronic device 101 determining an image of a last location in asecond video, according to certain embodiments.

Referring to FIG. 13A. FIG. 13B, and FIG. 13C, the electronic device 101may insert the ending credit (or the last image) of a second videodifferently, based on the location tags of images included in the secondvideo.

For example, as illustrated in FIG. 13A, the electronic device 101 maydisplay a geographic location (e.g., Seoul or Paris) indicating in thelocation tags of images included in a second video 1310 overlap with thelast image of the second video 1310. According to an embodiment, whenimages including a character include location tags identifying ageographic location or locations, the electronic device 101 may displaythe geographic locations on the last image of the second video 1310. Forexample, the location may include the name of at least a country or acity. The electronic device 101 may display locations to which anidentified person (e.g., a character such as ‘B’) has traveled, bydisplaying text indicating the location the last image (or multipleimages proximate to the end) of the second video 1310.

For another example, as illustrated in FIG. 13B, the electronic device101 may display a graphic user interface (GUI) (e.g., calendar)indicating the shooting dates (e.g., from the twelfth to theseventeenth) of images included in the second video 1320, on the lastimage (or multiple images proximate to an end) of the second video 1320.According to an embodiment, the images may include a location tagindicating a country different from a country where the identifiedperson is known to reside (e.g., Korea). Such images indicating alocation outside the home-country may be automatically selected fromamong the images (e.g., selected exclusively), which are included in thesecond video 1320 including the character. Based on the location tag,the electronic device 101 may determine that the subset of images werecaptured while the person (e.g., the character) was traveling outsidethe home country. Accordingly, the electronic device 101 may includedisplay of a schedule, during which the person (e.g., ‘B’) wastraveling, by displaying GUI on the last image (or multiple imagesproximate to an end) of the second video 1320.

For another example, as illustrated in FIG. 13C, when there is a singlelocation tag of a country different from a country (e.g., Korea) where acharacter resides, the electronic device 101 may display GUI indicatingthe country corresponding to a location tag, on the last image of asecond video 1330.

As described above, an electronic device (e.g., 101 of FIG. 1) mayinclude a display (e.g., 260 of FIG. 2), a processor (e.g., 120 of FIG.2) operatively connected to the display, and a memory (e.g., 130 of FIG.2) operatively connected to the processor. The memory may storeinstructions that, when executed, cause the processor to display aplurality of images stored in the gallery application via the displaywhen a gallery application is executed, to receive a first user input tomake a request for generating a video, to analyze at least one characterincluded in the plurality of images in response to the first user input,to display the analyzed at least one character via the display, toreceive a second user input to select a first character of the at leastone character, to select images including the first character among theplurality of images, in response to the second user input, and to playthe video including the selected images.

According to an embodiment, the instructions may cause the processor toreceive a third user input to select at least one image among theplurality of images, to receive the first user input after the thirduser input is received, to analyze at least one character included inthe at least one image, in response to the first user input, to displaythe analyzed at least one character via the display, to receive thesecond user input to select the first character of the at least onecharacter, to select images including the first character among the atleast one image, in response to the second user input, and to play thevideo including the selected images.

According to an embodiment, the instructions may cause the processor toselect a first image among the plurality of images, to identify whetherthe first image includes the first character, to identify whether thefirst image includes another character when the first image includes thefirst character, and to insert the first image into a first location ora last location of the video when the first image does not include theother character.

According to an embodiment, the instructions may cause the processor toidentify whether a location tag of the first image is the same as alocation tag of a second image including the first character when thefirst image does not include the first character and to insert the firstimage into a middle location of the video when the location tag of thefirst image is the same as the location tag of the second image.

According to an embodiment, the instructions may cause the processor notto select the first image when the location tag of the first image isdifferent from the location tag of the second image.

According to an embodiment, the instructions may cause the processor toinsert the first image into a middle location of the video when thefirst image includes the other character.

According to an embodiment, the instructions may cause the processor toreceive a fourth user input to select the first character and a secondcharacter among the at least one character, to receive a fifth userinput to select the first character among the first character and thesecond character, as a main character, to select a first image groupincluding at least one of the first character or the second characteramong the plurality of images, in response to the fourth user input andthe fifth user input, to select a second image group including the firstcharacter (e.g., exclusively) from the first image group, and to insertimages included in the second image group, into a first location or alast location of the video.

As described above, a method of an electronic device (e.g., 101 ofFIG. 1) may include playing a first video, analyzing at least onecharacter included in the first video, displaying the analyzed at leastone character, receiving a first user input to select a first characterof the at least one character, selecting images including the firstcharacter among a plurality of images included in the first video, inresponse to the first user input, and playing a second video includingthe selected images.

According to an embodiment, the selecting of the images including thefirst character among the plurality of images included in the firstvideo may include selecting a first image among the plurality of imagesincluded in the first video, identifying whether the first imageincludes the first character, and identifying whether the first imageincludes another character when the first image includes the firstcharacter. The playing of the second video may include inserting thefirst image into a first location or a last location of the second videowhen the first image does not include the other character.

According to an embodiment, the selecting of the images including thefirst character among the plurality of images included in the firstvideo further may include identifying whether a location tag of thefirst image is the same as a location tag of a second image includingthe first character when the first image does not include the firstcharacter. The playing of the second video may further include insertingthe first image into a middle location of the second video when thelocation tag of the first image is the same as the location tag of thesecond image.

According to an embodiment, the selecting of the images including thefirst character among the plurality of images included in the firstvideo may further include not selecting the first image when thelocation tag of the first image is different from the location tag ofthe second image.

According to an embodiment, the playing of the second video may furtherinclude inserting the first image into a middle location of the secondvideo when the first image includes the other character.

According to certain embodiments disclosed in the disclosure, theelectronic device may include various types of devices. The electronicdevice may include, for example, a portable communication device (e.g.,a smartphone), a computer device, a portable multimedia device, a mobilemedical appliance, a camera, a wearable device, or a home appliance. Theelectronic device according to an embodiment of the disclosure shouldnot be limited to the above-mentioned devices.

Certain embodiments of the disclosure and terms used herein are notintended to limit the technical features described in the disclosure tospecific embodiments, and it should be understood that the embodimentsand the terms include modification, equivalent, or alternative on thecorresponding embodiments described herein. With regard to descriptionof drawings, similar or related components may be marked by similarreference marks/numerals. The singular form of the noun corresponding toan item may include one or more of items, unless interpreted otherwisein context. In the disclosure, the expressions “A or B”, “at least oneof A and B”, “at least one of A or B”, “A, B, or C”, “at least one of A,B, and C”, and “at least one of A, B, or C” may include any and allcombinations of one or more of the associated listed items. The terms,such as “first” or “second” may be used to simply distinguish thecorresponding component from the other component, but do not limit thecorresponding components in other aspects (e.g., importance or order).When a component (e.g., a first component) is referred to as being“coupled with/to” or “connected to” another component (e.g., a secondcomponent) with or without the term of “operatively” or“communicatively”, it may mean that a component is connectable to theother component, directly (e.g., by wire), wirelessly, or through thethird component.

The term “module” used herein may include a unit, which is implementedwith hardware, software, or firmware, and may be interchangeably usedwith the terms “logic”, “logical block”, “part”, “circuit”, or the like.The “module” may be a minimum unit of an integrated part or may be aminimum unit of the part for performing one or more functions or a partthereof. For example, according to an embodiment, the module may beimplemented in the form of an application-specific integrated circuit(ASIC).

Certain embodiments of the disclosure may be implemented with software(e.g., program 140) including one or more instructions stored in astorage medium (e.g., the internal memory 136 or the external memory138) readable by a machine (e.g., the electronic device 101). Forexample, the processor (e.g., the processor 120) of the machine (e.g.,the electronic device 101) may call at least one instruction of thestored one or more instructions from a storage medium and then mayexecute the at least one instruction. This enables the machine tooperate to perform at least one function depending on the called atleast one instruction. The one or more instructions may include a codegenerated by a complier or a code executable by an interpreter. Themachine-readable storage medium may be provided in the form of anon-transitory storage medium. Herein, ‘non-transitory’ just means thatthe storage medium is a tangible device and does not include a signal(e.g., electromagnetic waves), and this term does not distinguishbetween the case where data is semipermanently stored in the storagemedium and the case where the data is stored temporarily.

According to an embodiment, a method according to certain embodimentsdisclosed herein may be provided to be included in a computer programproduct. The computer program product may be traded between a seller anda buyer as a product. The computer program product may be distributed inthe form of a machine-readable storage medium (e.g., compact disc readonly memory (CD-ROM)) or may be distributed (e.g., downloaded oruploaded), through an application store (e.g., PlayStore™), directlybetween two user devices (e.g., smartphones), or online. In the case ofon-line distribution, at least part of the computer program product maybe at least temporarily stored in the machine-readable storage mediumsuch as the memory of a manufacturer's server, an application store'sserver, or a relay server or may be generated temporarily.

According to certain embodiments, each component (e.g., a module or aprogram) of the above-described components may include a single entityor a plurality of entities. According to certain embodiments, one ormore components of the above-described components or operations may beomitted, or one or more other components or operations may be added.Alternatively or additionally, a plurality of components (e.g., a moduleor a program) may be integrated into one component. In this case, theintegrated component may perform one or more functions of each componentof the plurality of components in the manner same as or similar to beingperformed by the corresponding component of the plurality of componentsprior to the integration. According to certain embodiments, operationsexecuted by modules, program, or other components may be executed by asuccessive method, a parallel method, a repeated method, or a heuristicmethod, or one or more of the operations may be executed in differentsequences or omitted. Alternatively, one or more other operations may beadded.

According to embodiments disclosed in the present disclosure, anelectronic device may generate a video including the character desiredby a user.

According to embodiments disclosed in the present disclosure, anelectronic device may generate the video that includes a plurality ofcharacters and includes a specific character as a main character amongthe plurality of characters.

Besides, a variety of effects directly or indirectly understood throughthe disclosure may be provided.

While the disclosure has been shown and described with reference tocertain embodiments thereof, it will be understood by those skilled inthe art that various changes in form and details may be made thereinwithout departing from the disclosure as defined by the appended claimsand their equivalents.

What is claimed is:
 1. An electronic device, comprising: a display; aprocessor operatively connected to the display; and a memory operativelyconnected to the processor, wherein the memory stores instructions that,when executed, cause the processor to: analyze a first video to identifyany characters included in the first video; display one or more iconsrepresenting one or more characters identified in the first video viathe display; receive a first user input selecting a first iconrepresenting a first character from among the one or more icons; basedon the first user input, select image frames of the first video thatinclude the first character from among image frames included in thefirst video; and generate a second video including the selected imageframes.
 2. The electronic device of claim 1, wherein the charactersinclude at least one of a person or an animal.
 3. The electronic deviceof claim 1, wherein selecting the image frames including the firstcharacter further comprises: identifying whether a first image fromamong the selected image frames include another character different fromthe first character, wherein generating the second video furthercomprises: inserting the first image into a starting portion or anending portion of the second video when the first image does not includethe other character.
 4. The electronic device of claim 3, wherein theinstructions, when executed, further cause the processor to: select asecond image of the first video that does not include the firstcharacter for inclusion in generating the second video, by: identifyingwhether a location tag of the second image matches a location tag of anyof the image frames that include the first character, wherein when thelocation tag of the second image matches the location tag of any of theimage frames that include the first character, generating the secondvideo includes inserting the second image into an interim positionwithin the second video.
 5. The electronic device of claim 4, whereinthe instructions, when executed, further cause the processor to: excludefurther images of the first video from inclusion in generating thesecond video, when location tags of the further images are differentfrom the location tags of all of the selected image frames including thefirst character of the first video.
 6. The electronic device of claim 3,wherein when the first image includes the other character, generatingthe second video includes inserting the first image into an interimposition within the second video.
 7. The electronic device of claim 1,wherein the instructions, when executed, cause the processor to: receivea second user input selecting a second character from among the one ormore characters in addition to the first character; receive a third userinput designating the first character as a main character; afterreceiving the second and third user inputs, select a first set ofimage-frames that include at least one of the first character or thesecond character from among the image frames included in the firstvideo; select a second set of image frames from the first set of imageframes including the first character and excluding the second character;and wherein generating the second video includes inserting imagesincluded in the second set of image frames into at least one of astarting portion or an ending portion of the second video.
 8. Theelectronic device of claim 1, further comprising: a wirelesscommunication circuit configured to transmit a file associated with thefirst video or the second video to an external electronic device,wherein the instructions, when executed, further cause the processor to:receive a fourth user input requesting sharing of the first video withthe external electronic device, wherein the analyzing the first video,displaying the one or more icons, the receiving the first user input,the selecting the image frames of the first video, and the generatingthe second video are executed responsive to receiving the fourth userinput.
 9. An electronic device, comprising: a display; a processoroperatively connected to the display; and a memory operatively connectedto the processor, wherein the memory stores instructions that, whenexecuted, cause the processor to: execute a gallery application anddisplay, as part of the gallery application, a plurality of imagesstored in the memory; receive a first user input requesting generatingof a video; analyze the plurality of images to identify one or morecharacters depicted in the plurality of images, in response to the firstuser input; display one or more icons representing the identified one ormore characters via the display; receive a second user input selecting afirst icon representing a first character of the one or more characters;based on the second user input, select images from among the pluralityof images that include the first character; and generate the videoincluding the selected images.
 10. The electronic device of claim 9,wherein a third user input selecting at least one image from among theplurality of images is received prior to receiving the first user input.11. The electronic device of claim 9, wherein selecting the imagesincluding the first character further comprises: identifying whether afirst image from among the selected images includes another characterdifferent from the first character, wherein generating the video furthercomprises: inserting the first image into a starting portion or a endingportion of the video when the first image does not include the othercharacter.
 12. The electronic device of claim 11, wherein theinstructions, when executed, cause the processor to: select other imagesfrom the plurality of images that do not include the first character forinclusion in generating the video, by: identifying whether location tagsof the other images match location tags of any of the images thatinclude the first character, wherein when the location tags of the otherimages match the location tags of any of the images that include thefirst character, generating the video includes inserting the otherimages into interim positions within the video.
 13. The electronicdevice of claim 12, wherein the instructions, when executed, cause theprocessor to: exclude further images of the plurality of images frominclusion in generating the video, when the location tags of the furtherimages are different from the location tags of all of the imagesincluding the first character.
 14. The electronic device of claim 11,wherein when the first image includes the other character, generatingthe video includes inserting the first image into an interim positionwithin the video.
 15. The electronic device of claim 9, wherein theinstructions, when executed, cause the processor to: receive a thirduser input selecting a second character from among the one or morecharacters in addition to the first character; receive a fourth userinput designating the first character as a main character; afterreceiving the third and fourth user inputs, select a first set of imagesthat include at least one of the first character and the secondcharacter from among the plurality of images; and select a second set ofimages from the first set of images including the first character andexcluding the second character, wherein generating the video includesinserting images included in the second set of images into at least oneof a starting portion or an ending portion of the video.
 16. A method inan electronic device, comprising: analyzing, by a processor, a firstvideo to identify any characters included in the first video; displayingone or more icons representing one or more characters identified in thefirst video via a display; receiving, by input circuitry, a first userinput selecting a first icon representing a first character from amongthe one or more icons; based on the first user input, selecting imageframes of the first video that include the first character from amongimage frames included in the first video; and generating, by theprocessor, a second video including the selected image frames.
 17. Themethod of claim 16, wherein selecting the image frames including thefirst character further comprises: identifying whether a first imagefrom among the selected image frames includes another characterdifferent from the first character, wherein generating the second videofurther comprises: inserting the first image into a first location or alast location of the second video when the first image does not includethe other character.
 18. The method of claim 17, further comprising:selecting a second image of the first video that does not include thefirst character for inclusion in generating the second video, by:identifying whether a location tag of the second image matches alocation tag of any of the image frames that include the firstcharacter, wherein when the location tag of the second image matches thelocation tag of any of the image frames that include the firstcharacter, generating the second video includes inserting the secondimage into an interim position within the second video.
 19. The methodof claim 18, further comprising: excluding further images of the firstvideo from inclusion in generating the second video, when the locationtags of the further images are different from the location tags of allof the selected image frames including the first character of the firstvideo.
 20. The method of claim 17, wherein when the first image includesthe other character, generating the second video includes inserting thefirst image into an interim position within the second video.